package com.ssm.property.dao.model.building;

import com.jee.ssm.common.core.base.BaseModel;
import com.ssm.property.dao.model.residence.Residence;
import com.ssm.property.dao.model.unit.Unit;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;
import java.util.List;

/**
 * 
 * 表名 d_building
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/03/25
 */
public class Building extends BaseModel {
    /**
     * 主键
     * 表字段 : d_building.id
     * Create time 2017/03/25
     */
    private String id;

    /**
     * 楼栋号
     * 表字段 : d_building.number
     * Create time 2017/03/25
     */
    @Excel(name = "楼栋号")
    private String number;

    /**
     * 建成时间
     * 表字段 : d_building.build_time
     * Create time 2017/03/25
     */
    @Excel(name = "建成时间",databaseFormat = "yyyyMMddHHmmss",format = "yyyy-MM-dd",isImportField = "false")
    private Date buildTime;

    /**
     * 建成单位
     * 表字段 : d_building.build_company
     * Create time 2017/03/25
     */
    @Excel(name = "建成单位")
    private String buildCompany;

    /**
     * 所属小区
     * 表字段 : d_building.residence_id
     * Create time 2017/03/25
     */
    @Excel(name = "小区名称")
    private String residenceId;
    /**
     * 楼长
     * 表字段 : d_building.auxiliary
     * Create time 2017/03/25
     */
    @Excel(name = "楼长")
    private String auxiliary;

    /**
     * 备注
     * 表字段 : d_building.intro
     * Create time 2017/03/25
     */
    @Excel(name = "备注")
    private String intro;

    /**
     * 所属小区
     */
    private Residence residence;

    private List<Unit> units;

    private  String belong;

    /**
     * 构造方法
     */
    public Building(String id, String number, Date buildTime, String buildCompany, String residenceId, String auxiliary, String intro) {
        this.id = id;
        this.number = number;
        this.buildTime = buildTime;
        this.buildCompany = buildCompany;
        this.residenceId = residenceId;
        this.auxiliary = auxiliary;
        this.intro = intro;
    }

    /**
     * 构造方法
     */
    public Building() {
        super();
    }

    public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    /**
     * 主键
     * @return id 主键
     */
    public String getId() {
        return id;
    }

    /**
     * 主键
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 楼栋号
     * @return number 楼栋号
     */
    public String getNumber() {
        return number;
    }

    /**
     * 楼栋号
     * @param number 楼栋号
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 建成时间
     * @return build_time 建成时间
     */
    public Date getBuildTime() {
        return buildTime;
    }

    /**
     * 建成时间
     * @param buildTime 建成时间
     */
    public void setBuildTime(Date buildTime) {
        this.buildTime = buildTime;
    }

    /**
     * 建成单位
     * @return build_company 建成单位
     */
    public String getBuildCompany() {
        return buildCompany;
    }

    /**
     * 建成单位
     * @param buildCompany 建成单位
     */
    public void setBuildCompany(String buildCompany) {
        this.buildCompany = buildCompany;
    }

    /**
     * 所属小区
     * @return residence_id 所属小区
     */
    public String getResidenceId() {
        return residenceId;
    }

    /**
     * 所属小区
     * @param residenceId 所属小区
     */
    public void setResidenceId(String residenceId) {
        this.residenceId = residenceId;
    }

    /**
     * 楼长
     * @return auxiliary 楼长
     */
    public String getAuxiliary() {
        return auxiliary;
    }

    /**
     * 楼长
     * @param auxiliary 楼长
     */
    public void setAuxiliary(String auxiliary) {
        this.auxiliary = auxiliary;
    }

    /**
     * 备注
     * @return intro 备注
     */
    public String getIntro() {
        return intro;
    }

    /**
     * 备注
     * @param intro 备注
     */
    public void setIntro(String intro) {
        this.intro = intro;
    }

    public List<Unit> getUnits() {
        return units;
    }

    public void setUnits(List<Unit> units) {
        this.units = units;
    }

    public String getBelong() {
        return belong;
    }

    public void setBelong(String belong) {
        this.belong = belong;
    }
}